home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1991: Code Warrior / bincue / Code Warrior.bin / Tools & Apps (Moof!) / Localization Tools / MPW Localization Tool / Localization / RezDeting < prev    next >
Encoding:
Text File  |  1990-08-23  |  1.3 KB  |  41 lines  |  [TEXT/MPS ]

  1.  
  2. ############################################################################
  3. ############################################################################
  4. ##                                                                          ##
  5. ##                        RezDeting SCRIPT                                  ##
  6. ##                        by Cindy Roberts                                  ##
  7. ##                        March 22, 1988                                      ##
  8. ##                                                                          ##
  9. ##                     Copyright Apple Computer, Inc. 1988-90                  ##
  10. ##                             All rights reserved.                          ##
  11. ##                                                                          ##
  12. ##  This script RezDets all of the files on a disk.  This should be done  ##                                                                        ##
  13. ##    by all files that were altered with ResEdit because that program tends##
  14. ##  to add extra bytes to files.                                          ##
  15. ############################################################################
  16. ############################################################################
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23. Alert "Put the disk into drive 1...." ;                    # Alerts the user
  24. Set DiskName `volumes 1`;                                # Gets the disk name
  25.  
  26. For i in `files -r -s -f "{DiskName}"`                  # For each file
  27.     if "{i}" != "{DiskName}Desktop"    && "{i}" != "{DiskName}DeskTop"            # that's not the desktop file
  28.         echo "Checking ∂"{i}∂"..." ;            # progress info for user
  29.         RezDet     "{i}";
  30.     End ;  
  31. End ; 
  32.  
  33. echo ;
  34. echo "All done" ;                            # message to user
  35. Beep; 
  36.  
  37.  
  38.  
  39.  
  40.  
  41.